package com.qinyeit.serviceapp.redis;

/**
 * 生成rediskey   所有的key通过方法生成
 * Created by wuqing on 2016/8/3.
 */
public class RedisKeyHelper {

    /**
     * 短信验证码
     * @param phone
     * @return
     */
    public static String genSmsKey(String phone){
        return "sms:"+phone;
    }

    /**
     * 服务费  编号自增
     * @param merchantGroupId
     * @return
     */
    public static String getChargeNo(Long merchantGroupId){
        return "charge:no:"+merchantGroupId;
    }


    /**
     * 菜谱数据下发
     * @param tableName
     * @param merchantId
     * @param merchantGroupId
     * @return
     */
    public static String getDishesKey(String tableName,Long merchantId,Long merchantGroupId){
        return tableName+":"+merchantId+":"+merchantGroupId;
    }







}
